package com.cliang.service.dao.impl;

import com.cliang.service.mapper.DgtOrderMapper;

import sei.system.util.Tools;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Repository
public class DgtOrderDao {
    @Resource
    private DgtOrderMapper dgtOrderMapper;

    public List<HashMap<String, Object>> getHotOrders() {
        return dgtOrderMapper.getHotOrders();
    }


    public List<HashMap<String, Object>> getNewOrders() {
        return dgtOrderMapper.getNewOrders(Tools.getDate());
    }


    public List<HashMap<String, Object>> getTodayPlayOrders() {
        return dgtOrderMapper.getTodayPlayOrders(Tools.getDate());
    }

    public void updateOrdersIsplay(List<String> ordersIdList) {
        dgtOrderMapper.updateOrdersIsplay(ordersIdList);
    }

    public void insertIsplayOrders(String ordersId) {
        dgtOrderMapper.insertIsplayOrders(Tools.getUUID32(), ordersId);
    }

    public void deleteOrdersIsplay(List<String> ordersIdList) {
        dgtOrderMapper.deleteOrdersIsplay(ordersIdList);
    }

}
